package edu.guet.Decorator;

public class Main {

    public static void main(String[] args) {
        ConcreteComponent c = new ConcreteComponent();

        ConcreteDecoratorA decoratorA = new ConcreteDecoratorA();
        ConcreteDecoratorB decoratorB = new ConcreteDecoratorB();

        decoratorA.setComponent(c);
        decoratorB.setComponent(decoratorA);

        decoratorB.Operation();
    }
}
